package com.xbk.seckill.activity.application.command;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * 活动DTO
 *
 * @author xiexu
 * @date 2025/2/4 11:01
 */
@Data
public class SeckillActivityCommand implements Serializable {

    private static final long serialVersionUID = 1507710823959609002L;

    // 秒杀活动名称
    private String activityName;

    // 秒杀活动开始时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    private Date startTime;

    // 秒杀活动结束时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+08:00")
    private Date endTime;

    // 秒杀活动描述
    private String activityDesc;
}
